import { request } from './request'
import { goodsURL } from '../utils/allUrl'

/* 
获取商品列表
*/
export function getGoodsList(data) {
  return request({
    method: 'get',
    url: goodsURL.goodsList,
    data
  })
}

/* 
商品详情
*/
export function getGoodsdetail(data) {
  return request({
    method: 'get',
    url: goodsURL.goodsDetail,
    data
  })
}

/* 
商品详情
*/
export function goodsSearch(data) {
  return request({
    method: 'get',
    url: goodsURL.goodsSearch,
    data
  })
}
